/*******************************************************************
 * Copyright (C) yel_hb-USTC, 2012                                
 *                                                                  
 * FILE NAME             :  SangerRule.h                                 
 * PRINCIPAL AUTHOR      :  yel_hb                               
 * MODULE NAME           :  SangerRule                             
 * LANGUAGE              :  C++                                      
 * TARGET ENVIRONMENT    :  windows                                   
 * DATE OF FIRST RELEASE :  2013/1/11                            
 * DESCRIPTION           :  class SangerRule definition
 ******************************************************************/

/*
 * Revision log:
 *
 * Created by yel_hb,2013/1/11
 *
 */

#include <vector>
#include "dmvector.h"
using namespace std;

#ifndef SANGERRULE_H     
#define SANGERRULE_H    1

class SangerRule
{
public:
	SangerRule ( );
	SangerRule ( int K, int N, double eta );
	void init ();
	void update ( DMVector X );
	vector<DMVector> getW ();
private:
	double eta;
	vector<DMVector> W;
	int K;
	int N;
};

#endif